<?php
/**
 * Test du fonctionnement du array merge
 */
 
$opts1 = array(
	'a' => 1,
	'b' => 1
);

$opts2 = array(
	'a' => 2,
	'b' => 2
);

$opts3 = array(
	'a' => 3,
	'b' => 3
);

$opts4 = array(
	'a' => 4,
	'b' => 4
);

$opts5 = array(
	'b' => 5
);

$opts6 = array(
	'a' => 6
);

$opts7 = array(
	'c' => 7
);

$opts8 = array(
);

echo "<pre>";
echo "merge: opts1,opts2\n";
print_r(array_merge($opts1, $opts2));
echo "merge: all\n";
print_r(array_merge($opts1, $opts2, $opts3, $opts4, $opts5, $opts6, $opts7, $opts8));
echo "opts1 + opts2\n";
print_r($opts1 + $opts2);
echo "opts2 + opts1\n";
print_r($opts2 + $opts1);
echo "opts + all\n";
print_r($opts8 + $opts7 + $opts6 + $opts5 + $opts4 + $opts3 + $opts2 + $opts1);

?>